home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tools / arexx-scripts / arexx-pack / rexxreqtoolsv12c.lha / RxReqTools / Install < prev    next >
Encoding:
AmigaDOS Script File  |  1993-07-23  |  2.2 KB  |  125 lines

  1. .KEY ,
  2. .BRA {
  3. .KET }
  4. ;;$VER: Install 37.10 (6.7.93)
  5. ;;
  6. ;;  $Filename: Install $
  7. ;;  $Version: 37.10 $
  8. ;;  $Date: 6.7.93 $
  9. ;;  $Creation: 14.6.93 $
  10. ;;
  11. ;;  Script file to install rexxreqtools.library.
  12. ;;
  13. ;;  © Copyright 1993 Rafael D'Halleweyn, all rights reserved
  14. ;;
  15.  
  16.  
  17.  
  18. FailAt 30
  19.  
  20. ; Set stack for Installer
  21. Stack 10000
  22.  
  23. ;
  24. ; We need Kickstart 2.04 or higher
  25. ;
  26. Version >NIL: VERSION 37
  27. If WARN
  28.   Echo "You need Kickstart 2.04 or higher to use RexxReqTools"
  29.   Skip end
  30. EndIf
  31.  
  32. ;
  33. ; Macro
  34. ;
  35. Set Install "Installer >NIL: *"Install RexxReqTools*" RexxReqTools"
  36.  
  37. ;
  38. ; Can we find Installer?
  39. ;
  40.  
  41. ; first: can we find Installer in the current path
  42. $Install
  43. If NOT ERROR
  44.   Quit
  45. EndIf
  46.  
  47. Version >NIL:     ; Get Workbench version in $Workbench
  48.  
  49. ; clear error output 'Installer: Unknown command'
  50. Echo "*E[0;0H*E[J*n" NOLINE
  51.  
  52. If $Workbench GE 41
  53.   Echo "This must be a very old version of RexxReqTools."
  54.   Skip end
  55. EndIf
  56.  
  57. Echo "Searching for Installer..."
  58. ; I'd better be prepared
  59. If $Workbench GE 40
  60.   If EXISTS Install3.1:Installer
  61.     Run >NIL: Install3.1:$Install
  62.     Quit
  63.   Else
  64.     Skip byhand
  65.   EndIf
  66. EndIf
  67.  
  68. If $Workbench GE 39
  69.   If EXISTS Install3.0:Installer
  70.     Run >NIL: Install3.0:$Install
  71.     Quit
  72.   Else
  73.     Skip byhand
  74.   EndIf
  75. EndIf
  76.  
  77. If $Workbench GE 38
  78.   If EXISTS Install2.1:Installer
  79.     Run >NIL: Install2.1:$Install
  80.     Quit
  81.   Else
  82.     Skip byhand
  83.   EndIf
  84. EndIf
  85.  
  86.  
  87. ;
  88. ; Couldn't find Installer: I'll do it by hand.
  89. ;
  90. Lab byhand
  91.  
  92. ; Clever way to find version of included rexxreqtools.library
  93. Version >ENV:RRTVersion{$$} "`cd`/rexxreqtools.library"
  94. If FAIL
  95.   Version >ENV:RRTVersion{$$} "`cd`rexxreqtools.library"
  96. EndIf
  97. Echo "*E[0;0H*E[J*n$RRTVersion{$$} Installation Script*n"
  98.  
  99. If EXISTS LIBS:rexxreqtools.library
  100.   Echo "Version of rexxreqtools.library already installed:"
  101.   Version LIBS:rexxreqtools.library
  102.   Echo ""
  103. EndIf
  104.  
  105. Ask "Install $RRTVersion{$$} ?"
  106. If WARN
  107.   Copy rexxreqtools.library LIBS:rexxreqtools.library
  108.   Echo "*n$RRTVersion copied to your LIBS: directory.*n"
  109.  
  110.   Version >NIL: reqtools.library VERSION 38
  111.   If WARN
  112.     Echo "*nYou'll also need version 38 (or higher) of the reqtools.library!!*n"
  113.   EndIf
  114.  
  115.   Echo "*nInstallation completed"
  116. EndIf
  117.  
  118.  
  119. Lab end
  120.  
  121. UnsetEnv RRTVersion{$$}
  122. Wait 3
  123.  
  124. Quit
  125.